In a variety of commonly used tools, regular expressions are similar but different. The following table lists some common regular expressions and their differences. There are always many projects and many omissions are required. please point out the
Among various commonly used tools,Regular Expressions are similar but different.
The following table lists some common Regular Expressions and their differences.
There are always many projects and many omissions are required. Please point out the
[: Alnum:]: character [: alpha:]: character [: digit:]: digit character [: graph:]: non-empty characters (non-space, control characters) [: lower:]: lowercase character [: cntrl:]: Control Character [: print:]: non-empty characters (including spaces)
REGEXP_LIKE (matching)REGEXP_INSTR (included)REGEXP_REPLACE (replace)REGEXP_SUBSTR (extract)
For example, the expression of the mobile phone number: ^ [1] {1} [35] {1} [[: digit:] {9} $You can query customer information tables (tKHXX) that contain
If "^" is displayed in "[]", this expression does not match the characters in, for example, "/[^ a-z]/" does not match any lower-case letters! The regular expression provides the following default values:'[: Alnum:]' matches any letterAlphanumeric
The fun of Linux terminal
Linux Command Line has a lot of fun, and we can easily and fully execute a lot of tedious tasks. For example, we calculate the frequency of occurrence of words and characters in a text file, which we intend to discuss in
6. Using Regular expressionsA regular expression is a method of describing a set of strings, based on the common characteristics of each string in a collection of strings. In program development, regular expressions are widely used in stringFind,
The usage of metacharacters in the regular expression tutorial.
This document describes how to use metacharacters in the regular expression tutorial. We will share this with you for your reference. The details are as follows:
Note: In all examples,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.